package com.endava.Formatting;
/*2. Extract datetime from a text:
        a) zz.ll.aa hh:mm:ss
        b) zz/ll/aa hh.mm.ss
        c) all
*/
public class RegexDateTest {
	public static void main(String[] args) {

		RegexDate regDate=new RegexDate();
		String regex=("(\\d{2}[/\\.]\\d{2}[/\\.]\\d{4} \\d{2}[\\:\\.]\\d{2}[\\:\\.]\\d{2})");
		String input=("21.03.2013 12:43:05  22.04.2014 13:53:05   21/03/2013 12.43.05   22/04/2014 13.43.02");
		
		regDate.numberFormat(regex, input);
	}
}

